package com.runfast.waimai.service.impl;

import com.runfast.common.service.BaseService;
import com.runfast.waimai.dao.mapper.NoticeMapper;
import com.runfast.waimai.dao.model.Notice;
import com.runfast.waimai.dao.model.NoticeExample;
import com.runfast.waimai.service.NoticeService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class NoticeServiceImpl extends BaseService<Notice, Integer, NoticeExample> implements NoticeService {
    public List<Notice> selectByMapWithBLOBsWithPageable(Map<Object,Object> map){
        NoticeMapper noticeMapper=(NoticeMapper)this.mapper;
        return noticeMapper.selectByMapWithBLOBsWithPageable(map);
    }
    public Integer countByMap(Map<Object,Object> map){
        NoticeMapper noticeMapper=(NoticeMapper)this.mapper;
        return noticeMapper.countByMap(map);
    }
}